package lanQiao;

import java.util.*;

public class WordImg
{
	public static void main(String[] a)
	{
		Scanner s = new Scanner(System.in);
		
		int n=s.nextInt();
		int m=s.nextInt();
		
		for(int i=0;i<n;i++)
		{
			for(int j=0,k=i; j<m;j++,k--)
			{
				System.out.print((char)(65+Math.abs(k)));
			}
			System.out.println();
		}
	}
}
